﻿#region File and License Information
/*
<File>
	<License>
		Copyright © 2009 - 2017, Daniel Vaughan. All rights reserved.
		This file is part of Calcium (http://calciumsdk.net), 
		which is released under the MIT License.
		See file /Documentation/License.txt for details.
	</License>
	<CreationDate>2009-05-17 19:02:43Z</CreationDate>
</File>
*/
#endregion

#if WINDOWS_UWP || NETFX_CORE
using Windows.UI.Xaml;
#else
using System.Windows;
#endif

namespace Outcoder.Gui.Adaptation
{
	public class UIElementAdapter : IUIElement
	{
		readonly UIElement uiElement;

		public Visibility Visibility
		{
			get
			{
				return uiElement.Visibility;
			}
			set
			{
				uiElement.Visibility = value;
			}
		}

		public UIElementAdapter(UIElement uiElement)
		{
			this.uiElement = ArgumentValidator.AssertNotNull(uiElement, "uiElement");	
		}
	}
}